<?php

namespace Api\Http\Controllers;


use Api\traits\ApiResponse;
use Catch\Traits\DB\BaseOperate;
use Illuminate\Http\Request;
use Api\Http\Controllers\Controller;
use Modules\Member\Models\Cooperate;


class CooperateController extends Controller
{

    use ApiResponse;

    public function __construct(
        protected readonly Cooperate $cooperate
    )
    {

    }
    /**
     * Display a listing of the resource.
     */
    public function index()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     */
    public function store(Request $request)
    {
        $data = $request->all();
        $this->cooperate->create($data);
        return $this->success('保存成功');
    }

    /**
     * Display the specified resource.
     */
    public function show(string $id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     */
    public function update(Request $request, string $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     */
    public function destroy(string $id)
    {
        //
    }
}
